package com.mill.scala.config

import javax.servlet.http.{HttpServletRequest, HttpServletResponse}

import org.springframework.stereotype.Component
import org.springframework.web.servlet.{ModelAndView, HandlerInterceptor}
import org.springframework.lang.Nullable
@Component
class MyHandlerInterceptor extends HandlerInterceptor {

  override def postHandle (request: HttpServletRequest, response: HttpServletResponse,
                           handler: AnyRef, @Nullable modelAndView: ModelAndView): Unit =  {
//    val model = modelAndView.getModel
//    val enset = model.entrySet()
//    val size = enset.size()
//    println(size)
  }

}
